import axios from '@/utils/request'

// 装具库位-分页查询
export function rfidCabinetPositionpage(params) {
  return axios.get('/rfidCabinetPosition/page', { params: params })
}

// 导出库位
export function exportExcel(params) {
  return axios.get('/rfidCabinetPosition/export',
    {
      params: params,
      responseType: 'blob'
    });
}

// 多个标签注册
export function batchRegister(data) {
  return axios.put('/rfidCabinetPosition/batchRegister', data);
}

// 层架标签导入模版下载
export function downloadTemplate(params) {
    return axios.get('/rfidCabinetPosition/downloadTemplate',
        {
            params: params,
            responseType: 'blob'
        });
}

// 层架标签导入
export function importData(data) {
    return axios.post('/rfidCabinetPosition/import', data, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    });
}

// 取消绑定rfid
export function unbindRfid(data) {
    return axios.put('/rfidCabinetPosition/unbindRfid', data)
}
